<?php

/**
 * Metopctp form base class.
 *
 * @package    Tesis
 * @subpackage form
 * @author     Your name here
 */
class BaseMetopctpForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'         => new sfWidgetFormInputHidden(),
      'metrica_id' => new sfWidgetFormInput(),
      'tipo_id'    => new sfWidgetFormInput(),
      'opcion_id'  => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'id'         => new sfValidatorPropelChoice(array('model' => 'Metopctp', 'column' => 'id', 'required' => false)),
      'metrica_id' => new sfValidatorInteger(),
      'tipo_id'    => new sfValidatorInteger(),
      'opcion_id'  => new sfValidatorInteger(),
    ));

    $this->widgetSchema->setNameFormat('metopctp[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Metopctp';
  }


}
